package chixing.day06.inherited;

public class SavingAccount extends Account {
    private String sa;
    public SavingAccount(){
        super();//默认省略
        System.out.println("savingAccount 的无参构造---------");
    }

    public SavingAccount(String sa) {
        this.sa = sa;
    }

    public SavingAccount(String accNo, String accName, String accPersonId, long accTelno, double accBalance, String sa) {
        super(accNo, accName, accPersonId, accTelno, accBalance);
        this.sa = sa;
    }

    public String getSa() {
        return sa;
    }

    public void setSa(String sa) {
        this.sa = sa;
    }

    @Override
    public String toString() {
        return "SavingAccount{" +
                "sa='" + sa + '\'' +
                '}';
    }
}
